package lec02.am;

public class FunDemo {
	static float f(float x)
	{
		return x>0?x:-x;
	}
	static double f(double x)
	{
		return x>0?x:-x;
	}

	static int f(Object x)
	{
		return x.hashCode();
	}
	static int f(String x)
	{
		return x.length();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		f(1.0);
		f(1.0f);
		f("abc");

	}

}
